<?php
class Base extends Controller{
	
	public function __construct(){
		parent::__construct();
		$this->model = M(CONTROLLER);
	}

	public function display($file, $data){
		$adminData['modules'] = include_once( __APP__.'config/modules.php' );
		$this->view('admin/head', $adminData);
		$this->view($file,$data);
		$this->view('admin/foot', $adminData);
	}
}
